<?php
/**
 * 用户详细信息
 */
namespace haibao\app\model\data;

class SnsMyProfile extends Base{
    
    /**
     * 性别：男、女
     */
    const GENDER_MALE = 1;
    
    const GENDER_FEMALE = 2;
	
	/**
	 * 是否验证手机号码 
	 */
	const MOBILE_VERIFIED_YES = 1;
	
	const MOBILE_VERIFIED_NO = 0;
	
	/**
	 * 是否验证邮箱 
	 */
	const EMAIL_VERIFIED_YES = 1;
	
	const EMAIL_VERIFIED_NO = 0;
	
	
	/**
	 * 是否收到邮件 
	 */
	const EMAIL_RECV_YES = 1;
	
	const EMAIL_RECV_NO = 0;
	
	/**
	 * 爱好是否需要验证
	 */
	const BUDDY_NEED_VALIDATE_YES = 1;
	
	const BUDDY_NEED_VALIDATE_NO = 0;
	
	
	/**
	 * 是否选择爱好
	 */
	const HOBBY_SELECTED_YES = 1;
	
	const HOBBY_SELECTED_NO = 0;

	/**
	 * 用户Id
	 */
	public $user_id;

	/**
	 * 头像
	 */
	public $avatar = '';

	/**
	 * 小头像
	 */
	public $tb_avatar_small;

	/**
	 * 中头像
	 */
	public $tb_avatar_middle;

	/**
	 * 大头像
	 */
	public $tb_avatar_large;

	/**
	 * 性别
	 */
	public $gender = 0;

	/**
	 * 昵称
	 */
	public $username = '';

	/**
	 * 是否是后台管理员（0：非管理员，1：管理员）
	 */
	public $is_staff = 0;

	/**
	 * 最后登录时间
	 */
	public $last_online;

	/**
	 * 最后登录IP
	 */
	public $last_ip;

	/**
	 * 是否验证邮箱
	 */
	public $is_email_verified;
	
	/**
	 * 是否验证手机号码
	 */
	public $is_mobile_verified;

	/**
	 * 是否收到邮件
	 */
	public $is_recv_email;

	/**
	 * 爱好是否需要验证
	 */
	public $is_buddy_need_validate;

	/**
	 * 是否选择爱好
	 */
	public $is_hobby_selected;

	/**
	 * 隐私
	 */
	public $home_privacy;

	
	
	public $recommend_value;

	public $recommend_meno;

	public $score;

	public $money;

	public $score_1;

	public $score_2;
	
	public $threads;

	public function __construct(){
		parent::__construct();
		$this->intField('user_id', 'user_id', true);
		$this->stringField('avatar', 'avatar', true);
		$this->stringField('tb_avatar_small', 'tb_avatar_small');
		$this->stringField('tb_avatar_middle', 'tb_avatar_middle');
		$this->stringField('tb_avatar_large', 'tb_avatar_large');
		$this->intField('gender', 'gender', true);
		$this->stringField('username', 'username', true);
		$this->intField('is_staff', 'is_staff', true);
		$this->dateField('last_online', 'last_online', true);
		$this->intField('last_ip', 'last_ip');
		$this->intField('is_email_verified', 'is_email_verified');
		$this->intField('is_mobile_verified', 'is_mobile_verified');
		$this->intField('is_recv_email', 'is_recv_email');
		$this->intField('is_buddy_need_validate', 'is_buddy_need_validate');
		$this->intField('is_hobby_selected', 'is_hobby_selected');
		$this->intField('home_privacy', 'home_privacy');
		$this->intField('recommend_value', 'recommend_value');
		$this->stringField('recommend_meno', 'recommend_meno');
		$this->intField('score', 'score');
		$this->intField('score_1', 'score_1');
		$this->intField('score_2', 'score_2');
		$this->intField('threads', 'threads');

		$this->setTableName('sns_myprofile');
	}
}